<?php

namespace App\Services\Proxy;

abstract class _BaseProxy
{
    protected $method;
    protected $path;
    protected $headers;
    protected $params;
    protected $host;
    protected $timeout = 10;

    public function __construct($method, $path, $headers, $params)
    {
        $this->method  = $method;
        $this->path    = $path ? '/' . $path : '';
        $this->headers = $headers ?: [];
        $this->params  = $params ?: [];
    }

    abstract public function handle();
}
